<template>
  <div v-for="item in list" :key="item">{{item}}</div>
  <div @click="peventfn">向父级传递事件</div>
</template>

<script>
export default {
    name:"cHild",
    props:{
        list:Array
    },
    created(){
        // console.log(this.NodeList)
    },
    methods:{
        peventfn(){
            alert(123)
             this.$emit("childevent","aaaa")
        }
    },
    mounted(){
        console.log("mounted")
    },
}
</script>

<style>

</style>